
#ifndef	COMMON_TLS_H
#define	COMMON_TLS_H


#include "common.h"


namespace	common
{
	class	tls
	{
	public:

		tls();
		~tls();

		bool	create();
		void	destroy();

		void*	get()	const;
		bool	set( void* p );

	private:

		DWORD	tls_idx_;

	};
}


#endif